<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=request.getContextPath()%>/" />
    <link rel="stylesheet" type="text/css" href="Styles/admin-all.css" />
    <link rel="stylesheet" type="text/css" href="Styles/base.css" />    
    <link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
    <script type="text/javascript" src="js/jquery-2.1.1.js"></script>
<title>后台管理系统</title>
</head>
<body>
<table class="table table-hover">
  <caption>审批公文</caption>
  <thead>
    <tr>
      <th>主题</th>
      <th>级别</th>
      <th>发表人</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach items="${dolist}" var="gws">
    <tr>
      <td><a href="gongwen/looklists?id=${gws.gwId}">${gws.title}</a></td>
      <td> <c:if test="${gws.grade==1}"><p>常规公文</p></c:if>
         <c:if test="${gws.grade==2}"><p>重要公文</p></c:if>
         <c:if test="${gws.grade==3}"><p>特殊公文</p></c:if>
         <c:if test="${gws.grade==4}"><p>紧急公文</p></c:if></td>
      <td>${gws.author}</td>
    </tr>
  <c:if test="${gws.gwId==null}">
  <div>
  <h1>暂无内容 <span class="label label-default"></span></h1>
  </div>
  </c:if>
  </c:forEach>
  </tbody>
  </table>
</body>
</html>